import request from '@/utils/request'

// 查询门店日销售报表列表
export function listDaliySalesReport(query) {
  return request({
    url: '/energize/daliySalesReport/list',
    method: 'get',
    params: query
  })
}

// 查询门店日销售额图表数据
export function listDaliySales(query) {
  return request({
    url: '/energize/daliySalesReport/sales',
    method: 'get',
    params: query
  })
}

// 查询门店周销售额图表数据
export function listWeekDaliySales(query) {
  return request({
    url: '/energize/daliySalesReport/listWeekDaliySales',
    method: 'get',
    params: query
  })
}
// 查询门店月销售额图表数据
export function listMonthDaliySales(query) {
  return request({
    url: '/energize/daliySalesReport/listMonthDaliySales',
    method: 'get',
    params: query
  })
}
//查询每个门店按照月份销售额图表数据

export function listStoreMonthDaliySales(query) {
  return request({
    url: '/energize/daliySalesReport/listStoreMonthDaliySales',
    method: 'get',
    params: query
  })
}

//查询每个门店卷烟销售额
export function listCigaretteDaliySales(query) {
  return request({
    url: '/energize/daliySalesReport/listCigaretteDaliySales',
    method: 'get',
    params: query
  })
}
// 查询门店日销售报表详细
export function getDaliySalesReport(id) {
  return request({
    url: '/energize/daliySalesReport/' + id,
    method: 'get'
  })
}

// 新增门店日销售报表
export function addDaliySalesReport(data) {
  return request({
    url: '/energize/daliySalesReport',
    method: 'post',
    data: data
  })
}

// 修改门店日销售报表
export function updateDaliySalesReport(data) {
  return request({
    url: '/energize/daliySalesReport',
    method: 'put',
    data: data
  })
}

// 删除门店日销售报表
export function delDaliySalesReport(id) {
  return request({
    url: '/energize/daliySalesReport/' + id,
    method: 'delete'
  })
}
